<script type="text/javascript">
	$(document).ready(function() {
            $('.fancybox-media').fancybox({
              openEffect	: 'elastic',
              closeEffect	: 'elastic',
		helpers : {
			media : {}
		},
                margin      : 50
            });
           $(".various").fancybox({
              closeClick  : false,
              openEffect	: 'elastic',
              closeEffect	: 'elastic',
              width		: '80%',
              closeBtn          : true,
              height		: '80%',
              type              :'iframe',
              'afterClose' : function() {
                parent.location.reload(true);
              },
              helpers   : {
                overlay : {closeClick: false}
              },
              'hideOnContentClick': true
            });
            $(".research").fancybox({
              closeClick  : true,
              openEffect	: 'elastic',
              closeEffect	: 'elastic',
              width		: '80%',
              closeBtn          : true,
              //height		: '80%',
              type              :'iframe',
              helpers   : {
                overlay : {closeClick: false}
              }
            });
	});
</script>

<%= render 'form' %>

<%= link_to 'Mostrar', @cultural_heritage_collection %> |
<%= link_to 'Asignar', :controller=>"/cultural_heritage/collections",:action => 'assing',:id =>@cultural_heritage_collection.id %> |
<% if @cultural_heritage_collection.cultural_heritages.size > 0 %>
  <%= link_to 'Galería', {:controller=>"/cultural_heritage/collections",:action => 'new_photo',:id =>@cultural_heritage_collection.id},:class =>'various', :remote =>true %> |
<%end%>
<%= link_to 'Regresar', cultural_heritage_collections_path %>
